home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / RIncludes / MacWindows.r < prev    next >
Encoding:
Text File  |  2000-04-12  |  6.8 KB  |  213 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        MacWindows.r
  3.  
  4.      Contains:    Window Manager Interfaces
  5.  
  6.      Version:    Technology:    Mac OS 9
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    © 1997-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __MACWINDOWS_R__
  19. #define __MACWINDOWS_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #ifndef __COLLECTIONS_R__
  26. #include "Collections.r"      /* get 'flac' type */
  27. #endif
  28. #define kWindowDefProcType                 'WDEF'
  29. #define kStandardWindowDefinition         0                    /*  for document windows and dialogs */
  30. #define kRoundWindowDefinition             1                    /*  old da-style window */
  31. #define kFloatingWindowDefinition         124                    /*  for floating windows */
  32.  
  33.                                                             /*  for use with kStandardWindowDefinition  */
  34. #define kDocumentWindowVariantCode         0
  35. #define kModalDialogVariantCode         1
  36. #define kPlainDialogVariantCode         2
  37. #define kShadowDialogVariantCode         3
  38. #define kMovableModalDialogVariantCode     5
  39. #define kAlertVariantCode                 7
  40. #define kMovableAlertVariantCode         9                    /*  for use with kFloatingWindowDefinition  */
  41. #define kSideFloaterVariantCode         8
  42.  
  43.                                                             /*  Resource IDs for theme-savvy window defprocs  */
  44. #define kWindowDocumentDefProcResID     64
  45. #define kWindowDialogDefProcResID         65
  46. #define kWindowUtilityDefProcResID         66
  47. #define kWindowUtilitySideTitleDefProcResID  67
  48.  
  49.                                                             /*  Proc IDs for theme-savvy windows  */
  50. #define kWindowDocumentProc             1024
  51. #define kWindowGrowDocumentProc         1025
  52. #define kWindowVertZoomDocumentProc     1026
  53. #define kWindowVertZoomGrowDocumentProc  1027
  54. #define kWindowHorizZoomDocumentProc     1028
  55. #define kWindowHorizZoomGrowDocumentProc  1029
  56. #define kWindowFullZoomDocumentProc     1030
  57. #define kWindowFullZoomGrowDocumentProc  1031
  58.  
  59.                                                             /*  Proc IDs for theme-savvy dialogs  */
  60. #define kWindowPlainDialogProc             1040
  61. #define kWindowShadowDialogProc         1041
  62. #define kWindowModalDialogProc             1042
  63. #define kWindowMovableModalDialogProc     1043
  64. #define kWindowAlertProc                 1044
  65. #define kWindowMovableAlertProc         1045
  66.  
  67.                                                             /*  procIDs available from Mac OS 8.1 (Appearance 1.0.1) forward  */
  68. #define kWindowMovableModalGrowProc     1046
  69.                                                             /*  Proc IDs for top title bar theme-savvy floating windows  */
  70. #define kWindowFloatProc                 1057
  71. #define kWindowFloatGrowProc             1059
  72. #define kWindowFloatVertZoomProc         1061
  73. #define kWindowFloatVertZoomGrowProc     1063
  74. #define kWindowFloatHorizZoomProc         1065
  75. #define kWindowFloatHorizZoomGrowProc     1067
  76. #define kWindowFloatFullZoomProc         1069
  77. #define kWindowFloatFullZoomGrowProc     1071
  78.  
  79.                                                             /*  Proc IDs for side title bar theme-savvy floating windows  */
  80. #define kWindowFloatSideProc             1073
  81. #define kWindowFloatSideGrowProc         1075
  82. #define kWindowFloatSideVertZoomProc     1077
  83. #define kWindowFloatSideVertZoomGrowProc  1079
  84. #define kWindowFloatSideHorizZoomProc     1081
  85. #define kWindowFloatSideHorizZoomGrowProc  1083
  86. #define kWindowFloatSideFullZoomProc     1085
  87. #define kWindowFloatSideFullZoomGrowProc  1087
  88.  
  89. #define kWindowNoPosition                 0x0000
  90. #define kWindowDefaultPosition             0x0000                /*  used by StandardAlert */
  91. #define kWindowCenterMainScreen         0x280A
  92. #define kWindowAlertPositionMainScreen     0x300A
  93. #define kWindowStaggerMainScreen         0x380A
  94. #define kWindowCenterParentWindow         0xA80A
  95. #define kWindowAlertPositionParentWindow  0xB00A
  96. #define kWindowStaggerParentWindow         0xB80A
  97. #define kWindowCenterParentWindowScreen  0x680A
  98. #define kWindowAlertPositionParentWindowScreen  0x700A
  99. #define kWindowStaggerParentWindowScreen  0x780A
  100.  
  101. #define kWindowCenterOnMainScreen         0x00000001
  102. #define kWindowCenterOnParentWindow     0x00000002
  103. #define kWindowCenterOnParentWindowScreen  0x00000003
  104. #define kWindowCascadeOnMainScreen         0x00000004
  105. #define kWindowCascadeOnParentWindow     0x00000005
  106. #define kWindowCascadeOnParentWindowScreen  0x00000006
  107. #define kWindowAlertPositionOnMainScreen  0x00000007
  108. #define kWindowAlertPositionOnParentWindow  0x00000008
  109. #define kWindowAlertPositionOnParentWindowScreen  0x00000009
  110.  
  111.  
  112.  
  113. /*--------------------------wind • Extensible Window Resource Format------------------*/
  114. /* The extensible window resource format is a flattened collection containing items      */
  115. /* stored by StoreWindowIntoCollection, plus possible application-specific items.     */
  116.  
  117. type 'wind' as 'flac';
  118.  
  119.  
  120. /*--------------------------wctb • Window Color Lookup Table--------------------------*/
  121. /*
  122.     wctb_RezTemplateVersion:
  123.         0 - original 
  124.         1 - more color parts and implicit header    <-- default
  125. */
  126. #ifndef wctb_RezTemplateVersion
  127.     #ifdef oldTemp                            /* grandfather in use of “oldTemp” */
  128.         #define wctb_RezTemplateVersion 0
  129.     #else
  130.         #define wctb_RezTemplateVersion 1
  131.     #endif
  132. #endif
  133.  
  134.  
  135. type 'wctb' {
  136. #if wctb_RezTemplateVersion == 0
  137.             unsigned hex longint;                                    /* ctSeed                */
  138.             integer;                                                /* ctFlags                */
  139. #elif wctb_RezTemplateVersion == 1
  140.             unsigned hex longint = 0;                                /* ctSeed                */
  141.             integer = 0;                                            /* ctFlags                */
  142. #endif
  143.             integer = $$Countof(ColorSpec) - 1;                        /* ctSize                */
  144.             wide array ColorSpec {
  145.                     integer        wContentColor,                        /* value                */
  146.                                 wFrameColor,
  147.                                 wTextColor,
  148.                                 wHiliteColor,
  149.                                 wTitleBarColor,
  150.                                 wHiliteLight,
  151.                                 wHiliteDark,
  152.                                 wTitleBarLight,
  153.                                 wTitleBarDark,
  154.                                 wDialogLight,
  155.                                 wDialogDark,
  156.                                 wTingeLight,
  157.                                 wTingeDark;
  158.                     unsigned integer;                                /* RGB:    red                */
  159.                     unsigned integer;                                /*        green            */
  160.                     unsigned integer;                                /*        blue            */
  161.             };
  162.     };
  163.  
  164.  
  165. /*----------------------------WIND • Window Template------------------------------------*/
  166. /*
  167.     WIND_RezTemplateVersion:
  168.         0 - original                             <-- default
  169.         1 - additional positioning info at end    
  170. */
  171. #ifndef WIND_RezTemplateVersion
  172.     #define WIND_RezTemplateVersion 1
  173. #endif
  174.  
  175.  
  176. type 'WIND' {
  177.         rect;                                                    /* boundsRect            */
  178.         integer         documentProc,                            /* procID                */
  179.                         dBoxProc,
  180.                         plainDBox,
  181.                         altDBoxProc,
  182.                         noGrowDocProc,
  183.                         movableDBoxProc,
  184.                         zoomDocProc = 8,
  185.                         zoomNoGrow = 12,
  186.                         rDocProc = 16;
  187.         byte            invisible, visible;                     /* visible                */
  188.         fill byte;
  189.         byte            noGoAway, goAway;                        /* goAway                */
  190.         fill byte;
  191.         unsigned hex longint;                                    /* refCon                */
  192.         pstring         Untitled = "Untitled";                /* title                */
  193.         
  194. #if WIND_RezTemplateVersion == 1
  195.     /*    The following are window positioning options used from Mac OS 7.0 forward */
  196.         align word;
  197.         unsigned integer                noAutoCenter = 0x0000,
  198.                                         centerMainScreen = 0x280a,
  199.                                         alertPositionMainScreen = 0x300a,
  200.                                         staggerMainScreen = 0x380a,
  201.                                         centerParentWindow = 0xa80a,
  202.                                         alertPositionParentWindow = 0xb00a,
  203.                                         staggerParentWindow = 0xb80a,
  204.                                         centerParentWindowScreen = 0x680a,
  205.                                         alertPositionParentWindowScreen = 0x700a,
  206.                                         staggerParentWindowScreen = 0x780a;
  207. #endif
  208. };
  209.  
  210.  
  211. #endif /* __MACWINDOWS_R__ */
  212.  
  213.